#{extends 'main.html' /}
#{set title:'DontBuyIt'/}
<div id="fb-root"></div>
				<script src="http://connect.facebook.net/en_US/all.js"></script>
				<script>
					FB.init({appId: '165771960149249', status: true, cookie: true, xfbml : true});
			</script>

<h1> Which product you want others not to buy ?</h1>
 <script type="text/javascript">
    function facebookLogin() {
        // get current login status from facebook.com
        FB.getLoginStatus(function(response) {
            if (response.session) {
                // logged in and connected user, someone you know
                window.location = "@{Application.facebookLogin()}";
            }

        });
    }
</script>
<font type="tahoma" size=5">
	#{form @Application.dontBuyThis()}
		<table>
			<tr>
				<td>Facebook Username</td>
				<td><input type="text" name="entry.userName"/></td>
			</tr>
			<tr>
				<td>Facebook Password</td>
				<td> <input type="password" name="entry.password"/></td>
			</tr>
			<tr>
				<td>What not to buy?</td>
				<td><input type="text" name="entry.item"/></td>
			</tr>
			<tr>
			
					<fb:login-button perms="email" size="medium" onlogin="facebookLogin();"></fb:login-button>
			</tr>
			<tr>
				<td><input type="submit" value="Dont buy this" /></td>
			</tr>
		</table>
	#{/form}
</font>


